/*******************************************************************
 *
 * Copyright (C), 2021-2022, Letstrong, All rights reserved.
 *
 * Author      : 
 * Create Time : 2020-12-18
 * Version     : v0.1
 * Description : 
 *******************************************************************/
#ifndef _USER_TASK_H_
#define _USER_TASK_H_

/*----------------------------Head file----------------------------*/
#include <stdint.h>
#include "rwip_task.h" // Task definitions

/*----------------------------macro file---------------------------*/
#define USER_TRANSFER_DATA_MAX_LEN    (20)

/*----------------------------type define--------------------------*/
enum
{
    USER_ENABLE_REQ = TASK_FIRST_MSG(TASK_ID_USER),
};


struct user_ind_upd_req
{
    uint8_t conidx;
	uint8_t len;
    uint8_t value[USER_TRANSFER_DATA_MAX_LEN];
};

/// Parameters of the @ref USER_WRITER_REQ_IND message
struct user_write_ind
{
	uint8_t conidx;
	uint8_t len;
    uint8_t value[USER_TRANSFER_DATA_MAX_LEN];
};

///Parameters of the @ref USER_CREATE_DB_REQ message
struct user_db_cfg
{
    /// Supported features
    uint16_t features;
    /// Profile Configuration
    uint8_t prfl_cfg;
};

/// Features Flag Masks
enum user_features
{
    USER_IND_NOT_SUP,
    USER_IND_SUP,
};

/*----------------------------var define---------------------------*/

/*-------------------------func declaration------------------------*/

/*-----------------------------------------------------------------*/

#endif
